#ifndef PLUGBOARD_H
#define PLUGBOARD_H
#include<QComboBox>
#include<QList>
#include<QGridLayout>
#include<QLabel>

class PlugBoard : public QWidget
{
public :
    PlugBoard();
    void phase2_plugboard();
    int nb_plugs_ok();
    QComboBox* getPlug(int);
    void raz_plugs();
    bool get_validite(int);


private :
    QList<QComboBox*> plugs;
    QList<QLabel*> labels;
    QGridLayout *layout_plugboard;
    int* plugs_valid;


};

#endif // PLUGBOARD_H
